package com.nanyang.tms.domain.weight.context;

import java.io.Serializable;

import com.nanyang.common.core.flow.context.AbsTransHandlerContext;
import com.nanyang.tms.domain.forecast.context.CalculateWeightContext;

import lombok.Data;
@Data
public class WeightContext extends AbsTransHandlerContext implements Serializable{

	private static final long serialVersionUID = 1L;
    private CalculateWeightContext calculateWeightContext;
    
    public WeightContext(){
    	this.calculateWeightContext=new CalculateWeightContext();
    }
    
	@Override
	public Object getTransHandlerContext(Class<?> cls) {
		if(cls.getSimpleName().equals("CalculateWeightContext")){
			return this.getCalculateWeightContext();
		}
		else{
			throw new RuntimeException("无此属性");
		}
	}
}
